package com.kfm.dao;

import com.kfm.model.Student;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

/**
 * 操作数据库student表 映射实体类 Student
 */
// 开启二级缓存 当前接口中所有方法都会使用二级缓存
@CacheNamespace(blocking = true)
public interface StudentDao {

    public List<Student> selectAll();

    Student selectById(int id);

    Student selectByNameAndGender(String name, String gender);

    List<Student> selectByName(String name);

    int deleteById(int id);

    int update(Student student);

    int insert(Student student);
    int insert2(Student student);
}
